package com.czl.lunt.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description = "帖子表")
public class Article {
    private Long id;
    @Schema(description = "文章id")
    private Long boardId;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "题目")
    private String title;
    @Schema(description = "访问量")
    private Integer visitCount;
    @Schema(description = "回复数")
    private Integer replyCount;
    @Schema(description = "点赞")
    private Integer likeCount;
    @Schema(description = "状态")
    private Byte state;
    @Schema(description = "逻辑删除")
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    //是否是作者本人
    private boolean isOwn;

    //关联属性
    private User user;
    //关联属性
    private Board board;


}